package com.guowangwei.gwwexperiment1.controller;

import com.guowangwei.gwwexperiment1.pojo.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController {
    @GetMapping("get")
    public User getUser(){
        User user = new User();
        user.setId(1);
        user.setUsername("郭王伟");
        user.setPassword("123456");
        return user;
    }
}
